Integrand size = 22, antiderivative size = 298 \[ \int (d+e x)^2 \sqrt {a+b \log \left (c x^n\right )} \, dx=-\frac {1}{2} \sqrt {b} d^2 e^{-\frac {a}{b n}} \sqrt {n} \sqrt {\pi } x \left (c x^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )-\frac {1}{2} \sqrt {b} d e e^{-\frac {2 a}{b n}} \sqrt {n} \sqrt {\frac {\pi }{2}} x^2 \left (c x^n\right )^{-2/n} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )-\frac {1}{6} \sqrt {b} e^2 e^{-\frac {3 a}{b n}} \sqrt {n} \sqrt {\frac {\pi }{3}} x^3 \left (c x^n\right )^{-3/n} \text {erfi}\left (\frac {\sqrt {3} \sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )+d^2 x \sqrt {a+b \log \left (c x^n\right )}+d e x^2 \sqrt {a+b \log \left (c x^n\right )}+\frac {1}{3} e^2 x^3 \sqrt {a+b \log \left (c x^n\right )} \]
[Out]
Time = 0.35 (sec) , antiderivative size = 298, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.318, Rules used = {2367, 2333, 2337, 2211, 2235, 2342, 2347} \[ \int (d+e x)^2 \sqrt {a+b \log \left (c x^n\right )} \, dx=-\frac {1}{2} \sqrt {\pi } \sqrt {b} d^2 \sqrt {n} x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )+d^2 x \sqrt {a+b \log \left (c x^n\right )}-\frac {1}{2} \sqrt {\frac {\pi }{2}} \sqrt {b} d e \sqrt {n} x^2 e^{-\frac {2 a}{b n}} \left (c x^n\right )^{-2/n} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )+d e x^2 \sqrt {a+b \log \left (c x^n\right )}-\frac {1}{6} \sqrt {\frac {\pi }{3}} \sqrt {b} e^2 \sqrt {n} x^3 e^{-\frac {3 a}{b n}} \left (c x^n\right )^{-3/n} \text {erfi}\left (\frac {\sqrt {3} \sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )+\frac {1}{3} e^2 x^3 \sqrt {a+b \log \left (c x^n\right )} \]
[In]
[Out]
Rule 2211
Rule 2235
Rule 2333
Rule 2337
Rule 2342
Rule 2347
Rule 2367
Rubi steps \begin{align*} \text {integral}& = \int \left (d^2 \sqrt {a+b \log \left (c x^n\right )}+2 d e x \sqrt {a+b \log \left (c x^n\right )}+e^2 x^2 \sqrt {a+b \log \left (c x^n\right )}\right ) \, dx \\ & = d^2 \int \sqrt {a+b \log \left (c x^n\right )} \, dx+(2 d e) \int x \sqrt {a+b \log \left (c x^n\right )} \, dx+e^2 \int x^2 \sqrt {a+b \log \left (c x^n\right )} \, dx \\ & = d^2 x \sqrt {a+b \log \left (c x^n\right )}+d e x^2 \sqrt {a+b \log \left (c x^n\right )}+\frac {1}{3} e^2 x^3 \sqrt {a+b \log \left (c x^n\right )}-\frac {1}{2} \left (b d^2 n\right ) \int \frac {1}{\sqrt {a+b \log \left (c x^n\right )}} \, dx-\frac {1}{2} (b d e n) \int \frac {x}{\sqrt {a+b \log \left (c x^n\right )}} \, dx-\frac {1}{6} \left (b e^2 n\right ) \int \frac {x^2}{\sqrt {a+b \log \left (c x^n\right )}} \, dx \\ & = d^2 x \sqrt {a+b \log \left (c x^n\right )}+d e x^2 \sqrt {a+b \log \left (c x^n\right )}+\frac {1}{3} e^2 x^3 \sqrt {a+b \log \left (c x^n\right )}-\frac {1}{6} \left (b e^2 x^3 \left (c x^n\right )^{-3/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {3 x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c x^n\right )\right )-\frac {1}{2} \left (b d e x^2 \left (c x^n\right )^{-2/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {2 x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c x^n\right )\right )-\frac {1}{2} \left (b d^2 x \left (c x^n\right )^{-1/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c x^n\right )\right ) \\ & = d^2 x \sqrt {a+b \log \left (c x^n\right )}+d e x^2 \sqrt {a+b \log \left (c x^n\right )}+\frac {1}{3} e^2 x^3 \sqrt {a+b \log \left (c x^n\right )}-\frac {1}{3} \left (e^2 x^3 \left (c x^n\right )^{-3/n}\right ) \text {Subst}\left (\int e^{-\frac {3 a}{b n}+\frac {3 x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c x^n\right )}\right )-\left (d e x^2 \left (c x^n\right )^{-2/n}\right ) \text {Subst}\left (\int e^{-\frac {2 a}{b n}+\frac {2 x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c x^n\right )}\right )-\left (d^2 x \left (c x^n\right )^{-1/n}\right ) \text {Subst}\left (\int e^{-\frac {a}{b n}+\frac {x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c x^n\right )}\right ) \\ & = -\frac {1}{2} \sqrt {b} d^2 e^{-\frac {a}{b n}} \sqrt {n} \sqrt {\pi } x \left (c x^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )-\frac {1}{2} \sqrt {b} d e e^{-\frac {2 a}{b n}} \sqrt {n} \sqrt {\frac {\pi }{2}} x^2 \left (c x^n\right )^{-2/n} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )-\frac {1}{6} \sqrt {b} e^2 e^{-\frac {3 a}{b n}} \sqrt {n} \sqrt {\frac {\pi }{3}} x^3 \left (c x^n\right )^{-3/n} \text {erfi}\left (\frac {\sqrt {3} \sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )+d^2 x \sqrt {a+b \log \left (c x^n\right )}+d e x^2 \sqrt {a+b \log \left (c x^n\right )}+\frac {1}{3} e^2 x^3 \sqrt {a+b \log \left (c x^n\right )} \\ \end{align*}
Time = 0.26 (sec) , antiderivative size = 287, normalized size of antiderivative = 0.96 \[ \int (d+e x)^2 \sqrt {a+b \log \left (c x^n\right )} \, dx=\frac {1}{36} x \left (-18 \sqrt {b} d^2 e^{-\frac {a}{b n}} \sqrt {n} \sqrt {\pi } \left (c x^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )-9 \sqrt {b} d e e^{-\frac {2 a}{b n}} \sqrt {n} \sqrt {2 \pi } x \left (c x^n\right )^{-2/n} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )-2 \sqrt {b} e^2 e^{-\frac {3 a}{b n}} \sqrt {n} \sqrt {3 \pi } x^2 \left (c x^n\right )^{-3/n} \text {erfi}\left (\frac {\sqrt {3} \sqrt {a+b \log \left (c x^n\right )}}{\sqrt {b} \sqrt {n}}\right )+36 d^2 \sqrt {a+b \log \left (c x^n\right )}+36 d e x \sqrt {a+b \log \left (c x^n\right )}+12 e^2 x^2 \sqrt {a+b \log \left (c x^n\right )}\right ) \]
[In]
[Out]
\[\int \left (e x +d \right )^{2} \sqrt {a +b \ln \left (c \,x^{n}\right )}d x\]
[In]
[Out]
Exception generated. \[ \int (d+e x)^2 \sqrt {a+b \log \left (c x^n\right )} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
\[ \int (d+e x)^2 \sqrt {a+b \log \left (c x^n\right )} \, dx=\int \sqrt {a + b \log {\left (c x^{n} \right )}} \left (d + e x\right )^{2}\, dx \]
[In]
[Out]
\[ \int (d+e x)^2 \sqrt {a+b \log \left (c x^n\right )} \, dx=\int { {\left (e x + d\right )}^{2} \sqrt {b \log \left (c x^{n}\right ) + a} \,d x } \]
[In]
[Out]
\[ \int (d+e x)^2 \sqrt {a+b \log \left (c x^n\right )} \, dx=\int { {\left (e x + d\right )}^{2} \sqrt {b \log \left (c x^{n}\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int (d+e x)^2 \sqrt {a+b \log \left (c x^n\right )} \, dx=\int \sqrt {a+b\,\ln \left (c\,x^n\right )}\,{\left (d+e\,x\right )}^2 \,d x \]
[In]
[Out]